Function.prototype.myCall = function(context) {
    context.fn = this;
    const otherArg = Array.from(arguments).slice(1);
    context.fn(otherArg);
    let result = context.fn();
    delete context.fn;
    return result;
};